package com.gaofei.myproject.mapper;


import com.gaofei.myproject.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //表示本类是一个mybatis的mapper
@Repository  //对应存储层的bean
public interface DepartmentMapper {

    //获取所有部门信息
    List<Department> getDepartments();

    //通过id获得部门
    Department getDepartment(int did);

}
